package config

// 全局应用
type Server struct {
	JWT    JWT    `mapstructure:"jwt" json:"jwt" yaml:"jwt"`          //jwt配置
	System System `mapstructure:"system" json:"system" yaml:"system"` //后端常用配置
	// gorm
	Mysql     Mysql     `mapstructure:"mysql" json:"mysql" yaml:"mysql"`                //mysql配置
	LogZap    LogZap    `mapstructure:"log-zap" json:"log-zap" yaml:"log-zap"`          //日志配置
	Amap      Amap      `mapstructure:"amap" json:"amap,omitempty" yaml:"amap"`         //高德地图的设置
	BaiduMap  BaiduMap  `mapstructure:"baidu-map" json:"baidu-map" yaml:"baidu-map"`    //百度地图设置
	AliyunOSS AliyunOSS `mapstructure:"aliyun-oss" json:"aliyun-oss" yaml:"aliyun-oss"` //阿里云oss
	Local     Local     `mapstructure:"local" json:"local" yaml:"local"`                //本地存储文件
	Redis     Redis     `mapstructure:"redis" json:"redis" yaml:"redis"`                //redis
	IDCard    IDCard    `mapstructure:"id-card" json:"id-card" yaml:"id-card"`          //国阳云身份验证
	AliyunSms AliyunSms `mapstructure:"aliyun-sms" json:"aliyun-sms" yaml:"aliyun-sms"` //阿里云短信验证
	Front     Front     `mapstructure:"front" json:"front" yaml:"front"`                //前端配置
	Phone     Phone     `mapstructure:"phone" json:"phone" yaml:"phone"`                //优音400
	WeiXin    WeiXin    `mapstructure:"weixin" json:"weixin" yaml:"weixin"`             //微信公众号接口
	// 跨域配置
	Cors CORS `mapstructure:"cors" json:"cors" yaml:"cors"`
	// 微信订阅模板
	Template    Template    `yaml:"template"`
	MongoDB     MongoDB     `yaml:"mongodb"`
	LoginTime   LoginTime   `yaml:"login-time" mapstructure:"login-time"`
	CitySetting CitySetting `yaml:"city-setting" mapstructure:"city-setting"`
	IpGeo       IpGeo       `mapstructure:"ip-path" yaml:"ip-path"`
}
